/**
 * 
 */
package com.google.code.sip.ucenter.ws.dto;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.google.code.sip.ucenter.ws.adapter.DateAdapter;

/**
 * 积分规则日志实体类
 * 
 * @author Liuye
 * 
 */
@XmlRootElement(name = "creditRuleLog")
@XmlSeeAlso(BaseDto.class)
@XmlAccessorType(XmlAccessType.FIELD)
@SuppressWarnings("serial")
public class CreditRuleLogDto extends BaseDto {
	/**
	 * 用户
	 */
	private String userId;

	/**
	 * 积分规则id
	 */
	private String creditRuleId;

	/**
	 * 积分规则名称
	 */
	private String creditRuleName;

	/**
	 * 积分规则动作
	 */
	private String creditRuleAction;
	/**
	 * 积分规则奖励总次数
	 */
	private int total;

	/**
	 * 当日奖励次数
	 */
	private int cycleNum;

	/**
	 * 最后的积分规则奖励日期
	 */
	@XmlJavaTypeAdapter(DateAdapter.class)
	private Date dateLine;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCreditRuleId() {
		return creditRuleId;
	}

	public void setCreditRuleId(String creditRuleId) {
		this.creditRuleId = creditRuleId;
	}

	public String getCreditRuleName() {
		return creditRuleName;
	}

	public void setCreditRuleName(String creditRuleName) {
		this.creditRuleName = creditRuleName;
	}

	public String getCreditRuleAction() {
		return creditRuleAction;
	}

	public void setCreditRuleAction(String creditRuleAction) {
		this.creditRuleAction = creditRuleAction;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getCycleNum() {
		return cycleNum;
	}

	public void setCycleNum(int cycleNum) {
		this.cycleNum = cycleNum;
	}

	public Date getDateLine() {
		return dateLine;
	}

	public void setDateLine(Date dateLine) {
		this.dateLine = dateLine;
	}

}
